package com.ust.diamond;
import java.awt.Point;

public class Data {
	// for my machine in lab...
//	public final static int INITIAL_X = 263;	
//	public final static int INITIAL_Y = 415;
	// for my laptop
	public final static int INITIAL_X = 306;	
	public final static int INITIAL_Y = 215;
	
	public final static boolean NEED_SCOLL_UP = false;
	public final static boolean INFINITE_LOOP = true;
	
	public final static int SIZE_X = 40;
	public final static int SIZE_Y = 40;
	public final static int CNT_X = 8;
	public final static int CNT_Y = 8;
	// for laptop
	public final static Point CANCEL_BUTTON = new Point(726, 549);
	// for lab machine
//	public final static Point CANCEL_BUTTON = new Point(686, 750);
	public final static int CANCEL_BUTTON_COLOR = -9868960;
	public final static int SLEEP_TIME_EACH_GAME = 61000;
	public final static int SLEEP_TIME_AFTER_CANCEL_PRESSED = 10000;
	public final static int SLEEP_TIME_BEFORE_GAME = 5000;
	// lab machine
//	public final static Point NEW_GAME_BUTTON = new Point(342, 728);
	//laptop
	public final static Point NEW_GAME_BUTTON = new Point(394, 525);
	// debug data in my laptop
	public final static String DEBUG_DATA_PATH = "C:\\Users\\Alley\\Desktop\\stuff\\1.png";
	// debug data in my lab machine
//	public final static String DEBUG_DATA_PATH = "C:\\Users\\eeuser\\Desktop\\stuff\\7.png";
	
	// How many times we use one image repeatedly
	// It's for debug
	static final int DATA_NUMBER_FOR_EACH_SAMPLE = 1;	
	// How many pixels we want from one diamond image
	static final int POINT_NUMBER_FOR_EACH_DATA = 10;
	
	public static Point GetPos(int x_index, int y_index) {
		Point pos = new Point();
		pos.x = INITIAL_X + SIZE_X * x_index;
		pos.y = INITIAL_Y + SIZE_Y * y_index;
		return pos;
	}
	
	public static Point GetPosForClick(Point pos) {
		return new Point(INITIAL_X + SIZE_X * pos.x + SIZE_X / 2, 
				INITIAL_Y + SIZE_Y * pos.y + SIZE_Y / 2);
	}
	
	public static int[] color = new int[]{
		// red, yellow, blue, green, grey, purple, orange, 
		0
	};

}
